package com.xindacloud.sms.adapter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author author
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName
public class SmsDownloadReportLog implements Serializable {


    /**
     * 主键
     * <p>
     * isNullAble:0
     */
    @TableId(type = IdType.AUTO)
    private Integer logId;

    /**
     * 动作类型(SMS)
     * isNullAble:1,defaultVal:SMS
     */
    private String actionType;

    /**
     * 提交方法(HTTP POST,HTTP GET,ALL)
     * isNullAble:1,defaultVal:HTTP POST
     */
    private String requestType;

    /**
     * 查询报告开始时间
     * isNullAble:1
     */
    private java.time.LocalDateTime queryReportStartTime;

    /**
     * 查询报告结束时间
     * isNullAble:1
     */
    private java.time.LocalDateTime queryReportEndTime;

    /**
     * 下载报告完成时间
     * isNullAble:1
     */
    private java.time.LocalDateTime downloadReportFinishTime;

    /**
     * 下载状态(pending, downloading, success, failed,unknown)
     * isNullAble:1,defaultVal:pending
     */
    private String downloadStatus;

    private Integer userId;

    /**
     * isNullAble:1,defaultVal:CURRENT_TIMESTAMP
     */
    private java.time.LocalDateTime createTime;


    @Override
    public String toString() {
        return "SmsDownloadReportLog{" +
                "logId='" + logId + '\'' +
                "actionType='" + actionType + '\'' +
                "requestType='" + requestType + '\'' +
                "queryReportStartTime='" + queryReportStartTime + '\'' +
                "queryReportEndTime='" + queryReportEndTime + '\'' +
                "downloadReportFinishTime='" + downloadReportFinishTime + '\'' +
                "downloadStatus='" + downloadStatus + '\'' +
                "createTime='" + createTime + '\'' +
                '}';
    }

}
